﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SurveySez.Model;
using SurveySez.NavigationModel;

namespace SurveySez.ViewModel.Editor
{
	public class PrivateViewModel
	{
		private Emcee _emcee;
		private IGamePresenter _gamePresenter;
		private EditorNavigationModel _editorNavigationModel;

        public PrivateViewModel(Emcee emcee, IGamePresenter gamePresenter, EditorNavigationModel editorNavigationModel)
		{
			_emcee = emcee;
			_gamePresenter = gamePresenter;
			_editorNavigationModel = editorNavigationModel;
		}

		public EditorViewModel Editor
		{
			get
			{
				return _gamePresenter.GameInPlay != null
					? null
					: new EditorViewModel(_emcee, _editorNavigationModel, _gamePresenter);
			}
		}

		public DashboardViewModel Dashboard
		{
			get
			{
				return _gamePresenter.GameInPlay == null
					? null
					: new DashboardViewModel(_gamePresenter.GameInPlay, _gamePresenter.GameNavigation, _gamePresenter);
			}
		}
	}
}
